package com.zdzx.model.dic;


public enum SwitchType {

	OFF("0","关闭"), 
	ON("1","开启");
	
	private String key;
	private String value;
	
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	private SwitchType(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static boolean hasKey(String key) {
		SwitchType[] values = SwitchType.values();
		for (SwitchType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
	

}
